package com.mohe.dangjian.service.interfaces;

import java.util.List;

import com.mohe.dangjian.model.CommunityProject;
import com.mohe.dangjian.utils.Page;


/**
 * 居民区项目 接口
 * 
 * @author wxm
 *
 */
public interface ICommunityProject {

	/**
	 * 根据条件查询项目信息，只显示指定页的信息
	 * 
	 * @param communityProject
	 * @param page
	 * @return
	 */
	public List<CommunityProject> getCommunityProjectList(CommunityProject communityProject, Page page);

	/**
	 * 根据条件查询行数
	 * 
	 * @param communityProject
	 * @return
	 */
	public Integer getCount(CommunityProject communityProject);

	/**
	 * 保存项目信息
	 * 
	 * @param communityProject
	 * @return
	 */
	public boolean saveCommunityProject(CommunityProject communityProject);
	
	/**
	 * 批量保存项目信息
	 * 
	 * @param communityProject
	 * @return
	 */
	public boolean saveCommunityProjectList(List<CommunityProject> communityProjectList);

	/**
	 * 根据编号查询信息
	 * 
	 * @param timeKey
	 * @return
	 */
	public CommunityProject getCommunityProjectById(Long timeKey);

	/**
	 * 编辑项目信息
	 * 
	 * @param communityProject
	 * @return
	 */
	public boolean updateCommunityProject(CommunityProject communityProject);

	/**
	 * 根据编号删除信息
	 * 
	 * @param timeKey
	 * @return
	 */
	public boolean delCommunityProject(Long timeKey);

	/**
	 * 获取所有项目
	 * 
	 * @return
	 */
	public List<CommunityProject> getAllCommunityProject();
	
	/**
	 * 根据条件查询项目信息
	 * @param communityProject
	 * @return
	 */
	public List<CommunityProject> getCommunityProjectList(CommunityProject communityProject);
}
